#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
char* my_strncat(char* arr, char* arr1, int x)
{
	while (*arr != '\0')
	{
		arr++;
	}
	while (x--)
	{
		*arr++ = *arr1++;
	}
	*arr = '\0';
	return arr;
}

int main()
{
	char str1[20];
	char str2[20];
	strcpy(str1, "To be ");
	strcpy(str2, "or not to be");
	my_strncat(str1, str2, 6);
	puts(str1);
	return 0;
}